package com.one.blocks.rbac.listener;

import com.one.blocks.rbac.enums.CacheEventEnum;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * @author <a href="mailto:idler41@163.con">linfuxin</a> created on 2022-12-07 15:20:09
 */
@Getter
public class CacheClearEvent extends ApplicationEvent {

    private final CacheEventEnum[] eventTypes;

    public CacheClearEvent(Object source, CacheEventEnum[] eventTypes) {
        super(source);
        this.eventTypes = eventTypes;
    }
}
